<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<%

	String openId = (String)request.getSession().getAttribute("openId");
 %>
<!doctype html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <link rel="stylesheet" href="../css/amazeui.min.css">
  <link rel="stylesheet" href="../css/wap.css">
  <link rel="stylesheet" href="../css/style.css"/>
  <link rel="stylesheet" href="../css/weui.css" />
  <title>学习</title>
</head>
  <script src="../js/jquery.js"></script>
  <script src="../js/amazeui.min.js"></script>
  <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  <script src="../js/jssdk.js"></script>
<body style="background:#ececec" >
	 <!-- loading toast -->
  <div class="pet_mian" >
    <div class="pet_content pet_content_list pet_hd">
      <div class="pet_article_like">
        <div class="pet_content_main pet_article_like_delete">
          <div data-am-widget="list_news" class="am-list-news am-list-news-default am-no-layout">
            <div class="am-list-news-bd">
				<div style="border:1px solid #22ac38;height:50px;margin-bottom:15px;border-radius: 3px;">
					<input type="text" style="width:87%;height:97%;border:0px;font-size:18px;" id="title"><span class="am-icon-search" style="height:100%;padding:9px 3%;color:#22ac38" id="search"></span>
				</div>
				 <div id="content">
					<c:forEach items="${postTypeList }" var="postType">
					  <!-- 判断文章是否停用是否停用  -->
						<c:if test="${postType.status==1 }">
						
						<a class="weui-cell weui-cell_access" href="${ctx}/postType/postTypeIntroduce?postTypeId=${postType.id}">
							<span><img src="${postType.image }" alt="" style="width:70px;height:90px;margin-right:10px;"> </span>
							<span class="weui-cell__bd">
								<span style="vertical-align: middle">
									<span class="postType">${postType.name}</span> 
									<span style="color:#969595;font-size:1.1rem;display:block;margin-top:5px;">${postType.intro }</span> 
									<span style="color:#969595;font-size:1.1rem;"><font style="color:#f11010;margin-right:10px;">￥${postType.price }</font>${postType.browseNumber }人学习</span>
									<span style="border:1px solid #22ac38;color:#22ac38;padding:0px 12px;border-radius:3px;float:right;font-size:14px;">学习</span>
								</span>
								
							</span>
							
						 </a>
					  </c:if>
					</c:forEach>
				 </div>
              </div>
            </div>
          </div>
        </div>
      </div>
 <!--底部-->
    <div data-am-widget="navbar" class="am-navbar am-cf my-nav-footer " id="">
      <ul class="am-navbar-nav am-cf am-avg-sm-4 my-footer-ul">
		<li>
           <a href="${ctx }/user/findUserIssue?issueTypeId=0" class="">
            <span class="am-icon-home"></span>
            <span class="am-navbar-label">首页</span>
          </a>
        </li>
        <li>
          <a href="${ctx }/issueType/findAll?mark=service&openId=<%=openId %>" class="">
            <span class="am-icon-comments"></span>
            <span class="am-navbar-label">提问</span>
          </a>
        </li>
		<li>
          <a href="${ctx }/postType/findAllPostType" class="">
            <span class="am-icon-book"></span>
            <span class="am-navbar-label">学习</span>
          </a>
        </li>
        <li style="position:relative">
          <a href="${ctx }/user/findByOpenId?openId=<%=openId %>" class="">
            <span class="am-icon-user"></span>
            <span class="am-navbar-label">我的</span>
          </a>
        </li>
      </ul>
</div>
    </div>

    <script src="../js/text-calculation.js" ></script>
</body>
  </html>